package com.test.personalblogproject.service;

import com.test.personalblogproject.pojo.ArticleParam;
import com.test.personalblogproject.pojo.Result;
import com.test.personalblogproject.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleService {
    Result publish(ArticleParam articleParam);

    Result FindArticlesByAuthorId(Long authorId);
    Result deleteById(Long id);

    Object updateByarticleId(ArticleParam articleParam);


    void like(ArticleParam articleParam);

    boolean toggleLike(int userId, Long articleId);

    List<Integer> likedArticleIds(int userId);

    int countLikes(int articleId);
}
